package cn.tedu.sp09.feign;


import cn.tedu.sp01.pojo.User;
import cn.tedu.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
@Component
//调用向eureka注册的item-service服务器
public class UserClientFB implements UserClient {


    @Override
    public JsonResult<User> getUser(Integer userId) {
        return JsonResult.err().msg("获取用户失败");
    }

    @Override
    public JsonResult<?> addscore(Integer userId, Integer score) {
        return JsonResult.err().msg("在增加用户积分失败");    }
}
